package org.zdc.core;
import haxe.macro.Expr;
import nme.display.DisplayObject;

class M 
{

	@:macro 
	public static function withVar(vname:String, obj:Dynamic, block:Expr):Expr {
		return macro {
			var $vname = $obj;
			$block;
		};
	}
	
}